#define _CRT_SECURE_NO_WARNINGS 1
#define row 10
#include<stdio.h>

int main() {
	int arr[row+10][row+10] = { 0,1 };
	for (int i = 1; i < row; i++) {
		for (int t = 1; arr[i-1][t]; t++) {
			printf("%d", arr[i-1][t]);
		}
		printf("\n");
		for (int j = 1; j<=i+1; j++) {
			arr[i][j] = arr[i - 1][j-1]+arr[i-1][j];
		}
	}
	return 0;
}